package com.mason.forum.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Message {
    private Long id;

    @ApiModelProperty("发送者id")
    private Long postUserId;

    @ApiModelProperty("接受者id")
    private Long receiveUserId;

    @ApiModelProperty("发送内容")
    private String content;

    private Byte state;// 0未读 1已读 2已回复
    //当前未涉及回复的消息关联针对对应回复者的那一条消息，但是可以确定是否已回复

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

 }